const express = require('express')
const router = express.Router()
const usersController = require('../controller/usersController')

router.get('/user', usersController.UserList)
router.get('/user/level/:level', usersController.UserList)
router.get('/user/:id', usersController.UserById)
router.get('/like/:class/:keyword', usersController.UserLike)
router.post('/user', usersController.UserAdd)
router.delete('/user/:id', usersController.UserDelete)
router.put('/user/:id', usersController.UserEdit)
router.put('/user/:id/status/:class/:value', usersController.UserStatus)


module.exports = router
